.form-designer {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #f5f7fa;

    .toolbar {
        padding: 8px 16px;
        background-color: #fff;
        border-bottom: 1px solid #dcdfe6;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: space-between;

        .toolbar-title {
            font-size: 1.2em;
            /* 调整标题字体大小 */
            margin: 0;
            /* 调整标题间距 */
        }

        .toolbar-left,
        .toolbar-right {
            display: flex;
            align-items: center;
        }

        .toolbar-right .el-button {
            margin-left: 10px;
            /* 调整按钮间距 */
        }

        .el-button {
            .el-icon {
                margin-right: 4px;
            }
        }
    }

    :deep(.el-container) {
        flex: 1;
        display: flex;
        flex-direction: row;
    }

    .left-aside {
        background-color: #fff;
        border-right: 1px solid #dcdfe6;
        display: flex;
        flex-direction: column;

        .full-height-tabs {
            flex: 1;
            display: flex;
            flex-direction: column;

            :deep(.el-tabs__content) {
                flex: 1;
                overflow-y: auto;
                padding: 10px;
            }
        }
    }

    .components-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;

        .component-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            // padding: 12px 8px;
            border: 1px solid #dcdfe6;
            border-radius: 4px;
            cursor: move;
            background: #fff;
            transition: all 0.3s;
            height: 80px;

            &:hover {
                border-color: #409eff;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
                transform: translateY(-2px);
            }

            .el-icon {
                font-size: 24px;
                margin-bottom: 8px;
                color: #409eff;
            }

            span {
                font-size: 12px;
                text-align: center;
                color: #606266;
            }
        }
    }

    .main-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;

        .design-area {
            flex: 1;
            min-height: 600px;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
    }

    .right-aside {
        background-color: #fff;
        border-left: 1px solid #dcdfe6;
        display: flex;
        flex-direction: column;

        .properties-panel {
            flex: 1;
            overflow-y: auto;

            .panel-title {
                margin: 0;
                padding: 15px;
                font-size: 16px;
                font-weight: bold;
                border-bottom: 1px solid #ebeef5;
            }

            .property-section {
                padding: 15px;
                border-bottom: 1px solid #ebeef5;

                .section-title {
                    font-size: 14px;
                    color: #606266;
                    margin-bottom: 15px;
                    font-weight: 500;
                }

                .el-form-item {
                    margin-bottom: 18px;

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }

            :deep(.el-form-item__label) {
                padding-bottom: 4px;
            }
        }
    }

    .temp-storage {
        .storage-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid #dcdfe6;
            border-radius: 4px;
            cursor: move;
            background: #fff;
            transition: all 0.3s;
            height: 80px;
            margin-bottom: 10px;
            position: relative;

            &:hover {
                border-color: #409eff;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
                transform: translateY(-2px);

                .delete-icon {
                    display: flex;
                }
            }

            .el-icon {
                font-size: 24px;
                margin-bottom: 8px;
                color: #409eff;
            }

            span {
                font-size: 12px;
                text-align: center;
                color: #606266;
            }

            .delete-icon {
                display: none;
                position: absolute;
                top: 5px;
                right: 5px;
                padding: 4px;
                border-radius: 50%;
                background-color: rgba(255, 255, 255, 0.9);
                color: #f56c6c;
                cursor: pointer;
                transition: all 0.3s;

                &:hover {
                    background-color: #f56c6c;
                    color: #fff;
                }
            }
        }
    }
}